package greetingtest;
import java.rmi.RemoteException;

import javax.xml.rpc.ServiceException;

import tutorial.hanbo.webservice.Greeting;
import tutorial.hanbo.webservice.GreetingServiceLocator;

public class StubTest {

	public static void main(String[] args) {
         try {
			greet();
		} catch (RemoteException e) {
			e.printStackTrace();
		} catch (ServiceException e) {
			e.printStackTrace();
		}
	}

	public static void greet() throws ServiceException, RemoteException {
			Greeting g = new GreetingServiceLocator().getGreetingPort();
			System.out.println(g.greetClient("coucou"));	
	}

}
